package com.example.article;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.example.apis")
@MapperScan(basePackages = {"com.example.article.mapper","com.example.user.mapper"})
@ComponentScan(basePackages = {"com.example.common","com.example.article","com.example.user"})
public class ArticleApplication {
    public static void main(String[] args){
        SpringApplication.run(ArticleApplication.class,args);
    }
}
